<?php

declare(strict_types=1);

namespace App\Model\Users;

use App\Model\Model;
use App\Traits\Model\Users\UserOauth as UserOauthTraits;

/**
 * @property int $id 
 * @property int $user_id 用户ID
 * @property int $shop_id 店铺ID
 * @property string $openid OPENID
 * @property string $unionid UNIONID
 * @property int $is_login 是否登录|["否","是"]
 * @property \Carbon\Carbon $created_at 
 * @property \Carbon\Carbon $updated_at 
 */
class UserOauth extends Model
{
    use UserOauthTraits;

    /**
     * The table associated with the model.
     */
    protected ?string $table = 'user_oauth';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'user_id', 'shop_id', 'openid', 'unionid', 'is_login', 'created_at', 'updated_at'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'user_id' => 'integer', 'shop_id' => 'integer', 'is_login' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime'];
}
